﻿namespace TechMadeira.Workflows
{
    class OrderStateOrdered : OrderState, IOrderState
    {
        public override string Name
        {
            get { return "Ordered"; }
        }

        public override void Wait()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.SoldOut;
        }

        public override void Prepare()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.Prepared;
        }

    }
}
